package com.apes.crm.vip.base;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 功能：会员活跃度
 *
 * @author HuJianlin
 * @create 2018-03-15 16:00
 */
@Getter
@Setter
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = "crm_vip_liveness")
public class VipLiveness extends Model {

    @Id
    @Column(name = "id", length = 16)
    @Comment("会员活跃度编码")
    private String id;  //会员活跃度编码

    @Column(name = "name", nullable = false, length = 120)
    @Comment("会员活跃度名称")
    private String name; //会员活跃度名称

    @Column(name = "DESCRIPTION", length = 200)
    @Comment("描述")
    private String description; //描述

    @Column(name = "valid", nullable = false, columnDefinition = "number(1,0) default 1")
    @Comment("是否有效")
    private boolean valid = true; //有效

}
